package com.qwert.shortlink.admin.dto.resp.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qwert.shortlink.admin.common.serialize.EmailDesensitizationSerializer;
import com.qwert.shortlink.admin.common.serialize.PhoneDesensitizationSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户返回参数响应
 * @author qwert
 * @version 1.0.0
 * @create 2024/6/25 10:15
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRespDTO {
    private Long id;
    private String username;
    private String realName;
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;
    @JsonSerialize(using = EmailDesensitizationSerializer.class)
    private String mail;
}
